//
//  ExpressionCollectionViewCell.m
//  表情键盘
//
//  Created by dllo on 16/6/24.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ExpressionCollectionViewCell.h"

@implementation ExpressionCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createCell];
    }
    return self;
}

-(void)createCell{
    self.image = [[UIImageView alloc] init];
//    self.image.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.image];

}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.image.frame = CGRectMake(5, 5, self.contentView.frame.size.height  - 10, self.contentView.frame.size.height - 10);
    
};

-(void)setImageString:(NSString *)imageString
{
    _imageString = imageString;
    self.image.image = [UIImage imageNamed:self.imageString];
    
}


@end
